#include "opencv2/opencv.hpp"
#include <iostream>

using namespace cv;
using namespace std;

int main(int, char** argv)
{
    std::cout << "Hello, World!" << std::endl;

    FileStorage fs2("daHuaCamConfig.yml", FileStorage::READ);
//// first method: use (type) operator on FileNode.
//    int frameCount = (int)fs2["frameCount"];
//    String date;
//// second method: use FileNode::operator >>
//    fs2["calibrationDate"] >> date;

    int IsGrabModeContinuesMy = (int)fs2["IsGrabModeContinuesMy"];
    int IsAutoExposureMy = (int)fs2["IsAutoExposureMy"];
    int exposeTimeMy = (int)fs2["exposeTimeMy"];
    int gainRawMy = (int)fs2["gainRawMy"];
    double GammaMy = (double)fs2["GammaMy"];
    int frameRateMy = (int)fs2["frameRateMy"];
    int redBalanceRatioMy = (int)fs2["redBalanceRatioMy"];
    int greenBalanceRatioMy = (int)fs2["greenBalanceRatioMy"];
    int blueBalanceRatioMy = (int)fs2["blueBalanceRatioMy"];

    int imgWidth = (int)fs2["imgWidth"];
    int imgHeight = (int)fs2["imgHeight"];

    fs2.release();
    return 0;
}